home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5417 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 68 61 | 6d 6c 65 74 2e 75 6e 63 |Path: ha|mlet.unc|
|00000010| 67 2e 65 64 75 21 71 5f | 7a 68 6f 6e 67 0a 46 72 |g.edu!q_|zhong.Fr|
|00000020| 6f 6d 3a 20 22 51 49 41 | 4e 20 2e 20 5a 48 4f 4e |om: "QIA|N . ZHON|
|00000030| 47 22 20 3c 71 5f 7a 68 | 6f 6e 67 40 68 61 6d 6c |G" <q_zh|ong@haml|
|00000040| 65 74 2e 75 6e 63 67 2e | 65 64 75 3e 0a 4e 65 77 |et.uncg.|edu>.New|
|00000050| 73 67 72 6f 75 70 73 3a | 20 63 6f 6d 70 2e 6c 61 |sgroups:| comp.la|
|00000060| 6e 67 2e 63 2b 2b 0a 53 | 75 62 6a 65 63 74 3a 20 |ng.c++.S|ubject: |
|00000070| 52 65 3a 20 70 49 6e 74 | 20 3d 20 6e 65 77 20 69 |Re: pInt| = new i|
|00000080| 6e 74 20 5b 39 38 37 36 | 35 34 33 32 31 4c 5d 2c |nt [9876|54321L],|
|00000090| 20 77 68 61 74 20 77 69 | 6c 6c 20 68 61 0a 44 61 | what wi|ll ha.Da|
|000000a0| 74 65 3a 20 53 75 6e 2c | 20 34 20 46 65 62 20 31 |te: Sun,| 4 Feb 1|
|000000b0| 39 39 36 20 31 30 3a 30 | 37 3a 33 34 20 2d 30 35 |996 10:0|7:34 -05|
|000000c0| 30 30 0a 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |00.Organ|ization:|
|000000d0| 20 54 68 65 20 55 6e 69 | 76 65 72 73 69 74 79 20 | The Uni|versity |
|000000e0| 6f 66 20 4e 6f 72 74 68 | 20 43 61 72 6f 6c 69 6e |of North| Carolin|
|000000f0| 61 20 61 74 20 47 72 65 | 65 6e 73 62 6f 72 6f 0a |a at Gre|ensboro.|
|00000100| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 50 69 6e |Message-|ID: <Pin|
|00000110| 65 2e 53 4f 4c 2e 33 2e | 39 31 2e 39 36 30 32 30 |e.SOL.3.|91.96020|
|00000120| 34 31 30 30 35 32 39 2e | 31 32 37 38 36 41 2d 31 |4100529.|12786A-1|
|00000130| 30 30 30 30 30 40 68 61 | 6d 6c 65 74 2e 75 6e 63 |00000@ha|mlet.unc|
|00000140| 67 2e 65 64 75 3e 0a 52 | 65 66 65 72 65 6e 63 65 |g.edu>.R|eference|
|00000150| 73 3a 20 3c 50 69 6e 65 | 2e 53 4f 4c 2e 33 2e 39 |s: <Pine|.SOL.3.9|
|00000160| 31 2e 39 36 30 32 30 33 | 32 31 35 35 35 39 2e 32 |1.960203|215559.2|
|00000170| 35 38 30 35 45 2d 31 30 | 30 30 30 30 40 68 61 6d |5805E-10|0000@ham|
|00000180| 6c 65 74 2e 75 6e 63 67 | 2e 65 64 75 3e 20 3c 33 |let.uncg|.edu> <3|
|00000190| 31 31 34 36 65 34 63 2e | 31 39 37 32 35 37 30 38 |1146e4c.|19725708|
|000001a0| 38 40 6e 6e 74 70 2e 69 | 78 2e 6e 65 74 63 6f 6d |8@nntp.i|x.netcom|
|000001b0| 2e 63 6f 6d 3e 0a 4e 4e | 54 50 2d 50 6f 73 74 69 |.com>.NN|TP-Posti|
|000001c0| 6e 67 2d 48 6f 73 74 3a | 20 68 61 6d 6c 65 74 2e |ng-Host:| hamlet.|
|000001d0| 75 6e 63 67 2e 65 64 75 | 0a 4d 69 6d 65 2d 56 65 |uncg.edu|.Mime-Ve|
|000001e0| 72 73 69 6f 6e 3a 20 31 | 2e 30 0a 43 6f 6e 74 65 |rsion: 1|.0.Conte|
|000001f0| 6e 74 2d 54 79 70 65 3a | 20 54 45 58 54 2f 50 4c |nt-Type:| TEXT/PL|
|00000200| 41 49 4e 3b 20 63 68 61 | 72 73 65 74 3d 55 53 2d |AIN; cha|rset=US-|
|00000210| 41 53 43 49 49 0a 49 6e | 2d 52 65 70 6c 79 2d 54 |ASCII.In|-Reply-T|
|00000220| 6f 3a 20 3c 33 31 31 34 | 36 65 34 63 2e 31 39 37 |o: <3114|6e4c.197|
|00000230| 32 35 37 30 38 38 40 6e | 6e 74 70 2e 69 78 2e 6e |257088@n|ntp.ix.n|
|00000240| 65 74 63 6f 6d 2e 63 6f | 6d 3e 20 0a 0a 20 0a 0a |etcom.co|m> .. ..|
|00000250| 4f 6e 20 53 75 6e 2c 20 | 34 20 46 65 62 20 31 39 |On Sun, |4 Feb 19|
|00000260| 39 36 2c 20 4d 69 6b 65 | 20 52 75 62 65 6e 73 74 |96, Mike| Rubenst|
|00000270| 65 69 6e 20 77 72 6f 74 | 65 3a 0a 0a 3e 20 22 51 |ein wrot|e:..> "Q|
|00000280| 49 41 4e 20 2e 20 5a 48 | 4f 4e 47 22 20 3c 71 5f |IAN . ZH|ONG" <q_|
|00000290| 7a 68 6f 6e 67 40 68 61 | 6d 6c 65 74 2e 75 6e 63 |zhong@ha|mlet.unc|
|000002a0| 67 2e 65 64 75 3e 20 77 | 72 6f 74 65 3a 0a 3e 20 |g.edu> w|rote:.> |
|000002b0| 0a 3e 20 3e 20 0a 3e 20 | 3e 20 48 69 2c 20 66 6f |.> > .> |> Hi, fo|
|000002c0| 6c 6b 73 3a 0a 3e 20 3e | 20 0a 3e 20 3e 20 48 65 |lks:.> >| .> > He|
|000002d0| 72 65 20 69 73 20 61 20 | 71 75 65 73 74 69 6f 6e |re is a |question|
|000002e0| 20 61 62 6f 75 74 20 6e | 65 77 2c 20 74 68 65 20 | about n|ew, the |
|000002f0| 66 6f 6c 6c 6f 77 69 6e | 67 20 69 73 20 6d 79 20 |followin|g is my |
|00000300| 63 6f 64 65 3a 0a 3e 20 | 3e 20 0a 3e 20 3e 20 69 |code:.> |> .> > i|
|00000310| 6e 74 20 6d 61 69 6e 28 | 76 6f 69 64 29 0a 3e 20 |nt main(|void).> |
|00000320| 3e 20 7b 0a 3e 20 3e 20 | 20 20 20 20 69 6e 74 20 |> {.> > | int |
|00000330| 2a 70 49 6e 74 3b 0a 3e | 20 3e 20 20 20 20 20 6c |*pInt;.>| > l|
|00000340| 6f 6e 67 20 42 6c 6f 63 | 6b 20 3d 20 39 38 37 36 |ong Bloc|k = 9876|
|00000350| 35 34 33 32 31 4c 3b 0a | 3e 20 3e 20 0a 3e 20 3e |54321L;.|> > .> >|
|00000360| 20 20 20 20 20 70 49 6e | 74 20 3d 20 6e 65 77 20 | pIn|t = new |
|00000370| 69 6e 74 5b 42 6c 6f 63 | 6b 5d 3b 0a 3e 20 3e 20 |int[Bloc|k];.> > |
|00000380| 20 20 20 20 69 66 28 70 | 49 6e 74 20 3d 3d 20 4e | if(p|Int == N|
|00000390| 55 4c 4c 29 20 64 6f 73 | 6f 6d 65 74 68 69 6e 67 |ULL) dos|omething|
|000003a0| 28 29 3b 0a 3e 20 3e 20 | 7d 0a 3e 20 3e 20 0a 3e |();.> > |}.> > .>|
|000003b0| 20 3e 20 4d 79 20 70 72 | 6f 62 6c 65 6d 20 69 73 | > My pr|oblem is|
|000003c0| 20 77 68 65 6e 20 49 20 | 63 6f 6d 70 69 6c 65 20 | when I |compile |
|000003d0| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 66 6f 72 20 |the prog|ram for |
|000003e0| 44 4f 53 20 75 6e 64 65 | 72 20 6c 61 72 67 65 20 |DOS unde|r large |
|000003f0| 6d 65 6d 6f 72 79 20 0a | 3e 20 3e 20 6d 6f 64 65 |memory .|> > mode|
|00000400| 6c 2c 20 61 62 6f 76 65 | 20 6e 65 77 20 6e 65 72 |l, above| new ner|
|00000410| 76 65 20 72 65 74 75 72 | 6e 20 4e 55 4c 4c 2c 20 |ve retur|n NULL, |
|00000420| 49 20 67 75 65 73 73 20 | 63 6f 6d 70 69 6c 65 72 |I guess |compiler|
|00000430| 20 63 6f 6e 76 65 72 74 | 0a 3e 20 3e 20 0a 3e 20 | convert|.> > .> |
|00000440| 3e 20 6e 65 77 20 69 6e | 74 5b 39 38 37 36 35 34 |> new in|t[987654|
|00000450| 33 32 31 4c 5d 20 2d 2d | 2d 20 63 6f 6e 76 65 72 |321L] --|- conver|
|00000460| 74 20 2d 2d 3e 20 6e 65 | 77 20 69 6e 74 5b 20 41 |t --> ne|w int[ A|
|00000470| 43 4f 4e 53 54 5d 0a 3e | 20 3e 20 77 68 65 72 65 |CONST].>| > where|
|00000480| 20 41 43 4f 4e 53 54 20 | 3d 20 30 78 66 66 66 66 | ACONST |= 0xffff|
|00000490| 20 2c 20 6f 72 20 41 43 | 4f 4e 53 54 20 3d 20 30 | , or AC|ONST = 0|
|000004a0| 78 37 66 66 66 2c 20 61 | 6d 20 49 20 72 69 67 68 |x7fff, a|m I righ|
|000004b0| 74 20 3f 0a 3e 20 3e 20 | 49 73 20 74 68 69 73 20 |t ?.> > |Is this |
|000004c0| 61 20 44 4f 53 20 74 68 | 69 6e 67 20 3f 20 6f 72 |a DOS th|ing ? or|
|000004d0| 20 61 20 43 2b 2b 20 74 | 68 69 6e 67 20 3f 20 49 | a C++ t|hing ? I|
|000004e0| 73 20 74 68 69 73 20 70 | 6f 72 74 61 62 6c 65 20 |s this p|ortable |
|000004f0| 3f 0a 3e 20 0a 3e 20 4d | 6f 72 65 20 6c 69 6b 65 |?.> .> M|ore like|
|00000500| 6c 79 20 74 68 65 20 73 | 79 73 74 65 6d 20 6a 75 |ly the s|ystem ju|
|00000510| 73 74 20 64 6f 65 73 6e | 27 74 20 68 61 76 65 20 |st doesn|'t have |
|00000520| 39 38 37 20 6d 65 67 20 | 66 72 65 65 20 6d 65 6d |987 meg |free mem|
|00000530| 6f 72 79 2c 20 73 6f 20 | 69 74 0a 3e 20 63 61 6e |ory, so |it.> can|
|00000540| 27 74 20 64 6f 20 74 68 | 65 20 61 6c 6c 6f 63 61 |'t do th|e alloca|
|00000550| 74 69 6f 6e 2e 20 20 4e | 65 77 65 72 20 63 6f 6d |tion. N|ewer com|
|00000560| 70 69 6c 65 72 73 20 77 | 69 6c 6c 20 74 68 72 6f |pilers w|ill thro|
|00000570| 77 20 61 6e 20 65 78 63 | 65 70 74 69 6f 6e 2c 20 |w an exc|eption, |
|00000580| 62 75 74 0a 3e 20 6f 6c | 64 65 72 20 6f 6e 65 73 |but.> ol|der ones|
|00000590| 20 73 69 6d 70 6c 79 20 | 72 65 74 75 72 6e 20 74 | simply |return t|
|000005a0| 68 65 20 6e 75 6c 6c 20 | 70 6f 69 6e 74 65 72 2e |he null |pointer.|
|000005b0| 0a 3e 20 0a 3e 20 0a 3e | 20 4d 69 63 68 61 65 6c |.> .> .>| Michael|
|000005c0| 20 4d 20 52 75 62 65 6e | 73 74 65 69 6e 0a 3e 20 | M Ruben|stein.> |
|000005d0| 0a 3e 20 0a 48 69 2c 20 | 4d 69 63 68 61 65 6c 3a |.> .Hi, |Michael:|
|000005e0| 0a 0a 54 68 61 6e 6b 73 | 20 66 6f 72 20 79 6f 75 |..Thanks| for you|
|000005f0| 72 20 6d 65 73 73 61 67 | 65 2c 20 6d 79 20 72 65 |r messag|e, my re|
|00000600| 61 6c 20 70 72 6f 62 6c | 65 6d 20 69 73 20 74 68 |al probl|em is th|
|00000610| 65 20 63 6f 6d 70 69 6c | 65 72 20 77 69 6c 6c 20 |e compil|er will |
|00000620| 6e 6f 74 20 72 65 74 75 | 72 6e 20 61 0a 6e 75 6c |not retu|rn a.nul|
|00000630| 6c 20 70 6f 69 6e 74 65 | 72 2c 20 65 76 65 6e 20 |l pointe|r, even |
|00000640| 69 66 20 49 20 73 65 74 | 5f 6e 65 77 5f 68 61 6e |if I set|_new_han|
|00000650| 64 6c 65 72 28 30 29 3b | 0a 0a 49 20 61 6d 20 63 |dler(0);|..I am c|
|00000660| 6f 6e 66 75 73 65 64 2e | 20 50 6c 65 61 73 65 20 |onfused.| Please |
|00000670| 68 65 6c 70 20 6d 65 20 | 61 67 61 69 6e 2e 20 49 |help me |again. I|
|00000680| 20 75 73 65 20 42 43 2b | 2b 20 34 2e 30 2e 0a 0a | use BC+|+ 4.0...|
|00000690| 51 69 61 6e 0a 0a 0a | |Qian... | |
+--------+-------------------------+-------------------------+--------+--------+